package cn.byapps.hw.utils;

public class ChineseUtils {
    /**
     * 判断字符串是否为中文
     *
     * @param name
     * @return
     */
    public static final boolean checkname(String name) {
        int n = 0;
        for (int i = 0; i < name.length(); i++) {
            n = (int) name.charAt(i);
            if (!(19968 <= n && n < 40869)) {
                return false;
            }
        }
        return true;
    }
}
